Why am I getting an IndexError on this program

visit shbcf.ru